	


<?php
$this->Html->addCrumb('Employee List','/Employees');
$this->Html->addCrumb('Add');
?>
<?php echo $this->Form->create('Employee', array('class' => 'form form-horizontal')); ?>
		
		
		
		<?php
		echo $this->Form->input('e_fname',array(
			'label' => array('text' => 'First Name', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'))
		);
		echo $this->Form->input('e_lname',array(
			'label' => array('text' => 'Last Name', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_homephone',array(
			'label' => array('text' => 'Home Phone' , 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_mobilephone',array(
			'label' => array('text' =>'Mobile', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_email',array(
			'label' => array('text' =>'Email', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('e_taxfile',array(
			'label' => array('text' =>'Tax File Number', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		?>		
		<div class="control-group">
        <div class="input-append date datetime">
            <?php echo $this->Form->input('e_dob',array('type' => 'text','div' => false, 'label' => array('text' =>'Date of Birth', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
		<?php
		
		echo $this->Form->input('e_nextOK',array(
			'label' => array('text' =>'Next of Kin', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('EmployeeJobLvl',array(
			'options' => $jobLvls,
			'label' => array('text' =>'Job Level', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('EmployeeJobType',array(
			'options' => $jobTypes,
			'label' => array('text' =>'Job Type', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		
		echo $this->Form->input('EmployeeJobStatus',array(
			'options' => $jobStatuses,
			'label' => array('text' =>'Status', 'class'=>'control-label'),
			'div' => 'control-group',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		 echo $this->Form->file('e_cv', array(
			'label' => array('text' => 'CV', 'class'=>'control-label'),
			'size'=>'50',
			'div' => 'control-group file',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		?>		
		<div class="control-group">
        <div class="input-append date datetime">
            <?php echo $this->Form->input('e_dateStart',array('type' => 'text','div' => false, 'label' => array('text' => 'Date Employed', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
		
<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
		<?php echo $this->Form->end(array(
		'label' => 'Add Employee',
		'class' => 'btn btn-primary',
		'div' => false
	   )); ?>
	  </div>

<script>
		$('.datetime').datetimepicker({
			format: 'yyyy-mm-dd',  //format: 'yyyy-MM-dd hh:mm:ss' either one works     
			language: 'en',
			startView: 4,
			endDate: '+1d',
			minView: 2,
			autoclose: 1,
			forceParse: 1,
			todayBtn: 0
		  });
		  
</script>